<?php
$this->breadcrumbs = array(
    'Web Users' => array('admin'),
    GxHtml::valueEx($model),
);

//$this->menu=array(
//	array('label'=>Yii::t('app', 'List') . ' ' . $model->label(2), 'url'=>array('index')),
//	array('label'=>Yii::t('app', 'Create') . ' ' . $model->label(), 'url'=>array('create')),
//	array('label'=>Yii::t('app', 'Update') . ' ' . $model->label(), 'url'=>array('update', 'id' => $model->id)),
//	array('label'=>Yii::t('app', 'Delete') . ' ' . $model->label(), 'url'=>'#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm'=>'Are you sure you want to delete this item?')),
//	array('label'=>Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url'=>array('admin')),
//);
$this->menu = array(
    //array('label' => Yii::t('app', 'List') . ' ' . $model->label(2), 'url'=>array('index')),
    array('label' => Yii::t('app', 'Create') . '  Web User', 'url' => array('create')),
    array('label' => Yii::t('app', 'Delete') . ' Web User', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')),
    array('label' => Yii::t('app', 'Manage') . ' Web Users', 'url' => array('admin')),
);
?>

<h1><?php echo Yii::t('app', 'View') . ' ' . 'Web User' . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?></h1>

<?php
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
       // 'id',
        'username',
     //   'password',
   //     'activationKey',
      //  'createtime',
      //  'lastvisit',
      //  'superuser:boolean',
        'status:boolean',
    ),
));
?>

<h2><?php //echo GxHtml::encode($model->getRelationLabel('authKeys')); ?></h2>
<?php
//	echo GxHtml::openTag('ul');
//	foreach($model->authKeys as $relatedModel) {
//		echo GxHtml::openTag('li');
//		echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('authKey/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true)));
//		echo GxHtml::closeTag('li');
//	}
//	echo GxHtml::closeTag('ul');
?><h2><?php //echo GxHtml::encode($model->getRelationLabel('profiles')); ?></h2>
<?php
//	echo GxHtml::openTag('ul');
//	foreach($model->profiles as $relatedModel) {
//		echo GxHtml::openTag('li');
//		echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('profiles/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true)));
//		echo GxHtml::closeTag('li');
//	}
//	echo GxHtml::closeTag('ul');
?><h2><?php // echo GxHtml::encode($model->getRelationLabel('restaurants')); ?></h2>
<?php
//	echo GxHtml::openTag('ul');
//	foreach($model->restaurants as $relatedModel) {
//		echo GxHtml::openTag('li');
//		echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('restaurant/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true)));
//		echo GxHtml::closeTag('li');
//	}
//	echo GxHtml::closeTag('ul');
?><h2><?php //echo GxHtml::encode($model->getRelationLabel('reviews')); ?></h2>
<?php
//	echo GxHtml::openTag('ul');
//	foreach($model->reviews as $relatedModel) {
//		echo GxHtml::openTag('li');
//		echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('review/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true)));
//		echo GxHtml::closeTag('li');
//	}
//	echo GxHtml::closeTag('ul');
?><h2><?php //echo GxHtml::encode($model->getRelationLabel('userHasRoles')); ?></h2>
<?php
//	echo GxHtml::openTag('ul');
//	foreach($model->userHasRoles as $relatedModel) {
//		echo GxHtml::openTag('li');
//		echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('userHasRole/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true)));
//		echo GxHtml::closeTag('li');
//	}
//	echo GxHtml::closeTag('ul');
?><h2><?php //echo GxHtml::encode($model->getRelationLabel('userPreferences')); ?></h2>
<?php
//	echo GxHtml::openTag('ul');
//	foreach($model->userPreferences as $relatedModel) {
//		echo GxHtml::openTag('li');
//		echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('userPreferences/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true)));
//		echo GxHtml::closeTag('li');
//	}
//	echo GxHtml::closeTag('ul');
?>